package com.kaifamiao.month03.day0323;

public class Prime {

    public static void main(String[] args) {
        System.out.println(primeSum());
    }

    /**
     * 100 以内质数和
     * @return 100 以内质数的和
     */
    public static int primeSum(){
        int sum = 0;
        loop:for(int i = 2; i < 100; i ++){
            for(int j = 2; j <= i; j ++){
                if(i % j == 0 && i != j){
                    continue loop;
                }
                if(i == j){
                    sum += i;
                }
            }
        }
        return sum;
    }
}
